{section name=id loop=$kategorie}
<div class="kategorie-bloga">
	{if $uprawnienia eq 1}<div class="kategoria-edytuj">
		<a style="float:left" href="{$smarty.const.HTTP_URL}{$smarty.request.page},,edytuj_kategorie,{$kategorie[id].blcID},{$kategorie[id].blcNazwa|frendlyurl}.html"><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_edit.gif"  title="Edytuj dane galeri"  alt="edit"></a>
		<a style="float:left" href="{$smarty.const.HTTP_URL}{$smarty.request.page},Blog,blcKategoriaUp,{$kategorie[id].blcID},{$kategorie[id].blcNazwa|frendlyurl}.html"><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_up.gif"  title="Do przodu"  alt="up"></a> 
		<a style="float:left" href="{$smarty.const.HTTP_URL}{$smarty.request.page},Blog,blcKategoriaDown,{$kategorie[id].blcID},{$kategorie[id].blcNazwa|frendlyurl}.html"><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_down.gif"  title="Do tyłu"  alt="down"></a>
		<a style="float:left" href="{$smarty.const.HTTP_URL}{$smarty.request.page},Blog,zablokujGalerie,{$kategorie[id].blcID},{$kategorie[id].blcStatus},{$kategorie[id].blcNazwa|frendlyurl}.html"><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_{if $kategorie[id].blcStatus eq 0}un{/if}lock.gif"  title="{if $kategorie[id].blcStatus eq 0}Zablokuj{else}Odblokuj{/if} galerię"  alt="lock"></a>
		<a style="float:left; cursor: pointer;" onclick="$('#pytanie-text-{$kategorie[id].blcID}').dialog();"  ><img src="{$smarty.request.HTTP_URL}public/skins/icons/16_delete.gif"  title="Usuń galerię"  alt="del"></a>
		<!-- help -->
		<div id="pytanie-text-{$kategorie[id].blcID}" style="display: none;" title="Czy usunąc galerię">
			
			<p>Czy napewno usunąc kategorię: {$kategorie[id].blcNazwa|truncate:100|wordwrap:17:" ":true|default:''}</p>
			<br/>
			<input type="button" value="Tak" onclick="document.location='{$smarty.const.HTTP_URL}{$smarty.request.page},Blog,usunKategorie,{$kategorie[id].blcID},{$kategorie[id].blcNazwa|frendlyurl}.html';"/>
			 <input type="button" value="Nie" onclick="$('#pytanie-text-{$kategorie[id].blcID}').dialog( 'destroy' );"/>
		</div>
		<!-- /help -->	
	</div>
	{/if}

	<h3><a href="{$smarty.const.HTTP_URL}{$smarty.request.page},,wyswietlWpisy,{$kategorie[id].blcID},{$kategorie[id].blcNazwa|frendlyurl}.html" title="{$kategorie[id].blcNazwa|wordwrap:17:" ":true|html2text}">{$kategorie[id].blcNazwa|wordwrap:17:" ":true|default:$kategorie[id].blcID}
		<br/><span style="font-size: 70%; padding: 0px;">{if isset($settings_blog.lista_kategorii_liczba_znakow_opisu)}{$kategorie[id].blcOpis|default:'opis kategorii...'|truncate:$settings_blog.lista_kategorii_liczba_znakow_opisu|wordwrap:17:" ":true|html2text}{else}{$kategorie[id].blcOpis|default:'opis kategorii...'|truncate:200|wordwrap:17:" ":true|html2text}{/if}</span>
	</a></h3>
	

	
</div>
{/section}

{literal}
<script>
	$(document).ready(function(){
		var border_color='';
		var background_color='';
		$(".kategorie-bloga").mouseover(function(){
			border_color = $(this).css("border-color");
			background_color = $(this).css("background-color");
			$(this).css("border-color","#00ff00");
			$(this).css("background-color","#dfdfdf");
		}).mouseout(function(){
			$(this).css("border-color",border_color);
			$(this).css("background-color",background_color);
		});
    
  });
</script>
{/literal}


